package patterns.structures.composite.program;

public class Program extends Movie {

	Program(String name){
		this.name=name;
	}
	
	@Override
	public void add(Movie movie) {
		System.out.println("You can't add movie to a program object");
	}

	@Override
	public void remove(Movie movie) {
		System.out.println("You can't remove movie to a program object");
	}

	@Override
	public void display() {
		System.out.println("---"+this.name);
	} 

}
